package com.pw.study.arithmetic

import com.pw.study.arithmetic.entities.HeroNode2
import com.pw.study.arithmetic.linked.FutureDoubleLinkedList

/**
 * @Desc: list练习
 * @author: future
 * @since: 2022/5/29-15:30
 */
object ListDemo1 {
  def main(args: Array[String]): Unit = {
    val node1: HeroNode2 = new HeroNode2(1, "宋江", "及时雨")
    val node2: HeroNode2 = new HeroNode2(5, "武松", "行者")
    val node3: HeroNode = new HeroNode(3, "吴用", "智多星")
    val node4: HeroNode = new HeroNode(2, "燕青", "浪子")

    val list = new FutureDoubleLinkedList()
    list.addNode(node1)
    list.addNode(node2)
    list.listNodes()


  }
}
